
.profile-container {
    width: 30%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

@media screen and (max-width: 600px) {
    .profile-container {
        width: 95%;
        margin: 20px auto;
        padding: 0 15px;
    }
}
#student-section {
    min-height:500px;
    display: block;
    padding: 20px 0;         /* 上下内边距，让内容不紧贴边缘 */
}

.tabs-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004999;
    margin-bottom: 20px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
}

thead {
    background-color: #0066cc;
    color: white;
    user-select: none;
}

thead th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
     min-height: 50px;  /* 最小行高 */
}

tbody tr:hover {
    background-color: #e6f0ff;
}

tbody td {
     padding: 14px 12px; /* 增大单元格内边距 */
    font-size: 0.95rem;
    vertical-align: middle;
}

hr {
    border: none;
    height: 1px;
    background: #d0d7de;
    margin: 40px 0;
}

/* 表单样式 */


.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #222;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1.8px solid #cfd8e7;
    border-radius: 6px;
    outline-offset: 2px;
    transition: border-color 0.3s ease;
}

input[type="text"]:disabled {
    background-color: #f0f0f0;
    color: #777;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    border-color: #0066cc;
    box-shadow: 0 0 5px rgba(0,102,204,0.3);
}

input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
}

.form-group label input[type="radio"] {
    margin-right: 4px;
}

button[type="submit"] {
    background-color: #0066cc;
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease;
    user-select: none;
}

button[type="submit"]:hover {
    background-color: #004999;
}

/* 响应式调整 */
@media screen and (max-width: 600px) {
    .profile-container {
        margin: 20px 10px;
        padding: 0 15px;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        display: none;
    }
    tbody tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    tbody td {
        padding: 8px 10px;
        text-align: right;
        position: relative;
        font-size: 0.9rem;
    }
    tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 50%;
        font-weight: 600;
        text-align: left;
        color: #555;
    }
}
#teacher-info-form {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 10px;

  /* max-width: 480px;
  margin: 0 auto; */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

/* 性别单选按钮容器改为行内排列 */
.gender-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* 性别label本身横向排列，且里面的input与文字垂直居中 */
.gender-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.gender-group input[type="radio"] {
  margin-right: 6px;
  cursor: pointer;
}

/* 输入框样式 */
input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1.8px solid #cfd8e7;
  border-radius: 6px;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:disabled {
  background-color: #f0f0f0;
  color: #777;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
  border-color: #0066cc;
  box-shadow: 0 0 5px rgba(0,102,204,0.3);
}

/* 提交按钮 */
button[type="submit"] {
  background-color: #0066cc;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 12px 30px;
  font-size: 1rem;
  transition: background-color 0.25s ease;
  user-select: none;
  margin-top: 10px;
 display: block;      /* 让按钮变成块级元素 */
  margin: 20px auto 0 auto;  /* 上间距20px，左右自动居中 */
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #004999;
}

/* 响应式 */
@media screen and (max-width: 600px) {
  #teacher-info-form {
    padding: 20px 15px;
  }
  .gender-group {
    gap: 12px;
  }
}
